from django.contrib.syndication.feeds import Feed
from videosoft.apps.news.models import Fact

class LatestEntries(Feed):
	title = "VideoSoft.org site news"
	link = "/news/"
	description = "Updates on changes and additions to VideoSoft.org."

	def items(self):
		return Fact.objects.all().order_by('-date')[:5];
		
	def item_link(self, item):
		return '/news/';
